package org.distributed.transaction.core.connection;

import java.sql.Connection;

import org.distributed.transaction.core.annotion.TransactionType;
import org.distributed.transaction.core.callback.ConnectionCallback;
import org.distributed.transaction.core.enums.DTTransactionType;
import org.springframework.stereotype.Component;

@Component
@TransactionType(type = DTTransactionType.TCC)
public class TccTransactionConnectionProxy implements TransactionConnectionProxy{

	@Override
	public Connection getConnection(ConnectionCallback callback) throws Throwable {
		return callback.callback();
	}

}
